package com.zyz.L_泛型.自定义泛型;

/**
 * @author: vick
 * @Date: 2025/4/2
 * @Description:
 * @version: 1.0
 */
public class Person<T> {
    //T类型的变量
    private T info;

    public Person() {
    }

    public Person(T info) {
        this.info = info;
    }

    public T getInfo() {
        return info;
    }

    public void setInfo(T info) {
        this.info = info;
    }

    //static 的方法中不饿能声明泛型
    /*public static void show(T t) {

    }*/
}
